﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Colorful.Furniture.Wrappers;

/// <summary>
///  api订单接口响应体
/// </summary>
public class OrderStandardResponseWrapper
{
    public OrderStandardResponseWrapper(string messages, string codes, string orderNos)
    {
        message = messages;
        code = codes;
        orderNo = orderNos;
    }

    public OrderStandardResponseWrapper()
    {

    }
    
    /// <summary>
    ///  状态码
    /// </summary>
    public string code { get; set; } = "2000";

    /// <summary>
    ///  消息
    /// </summary>
    public string message { get; set; }

    /// <summary>
    /// 平台订单号
    /// </summary>
    public string orderNo { get; set; }

}

/// <summary>
/// api接口响应体
/// </summary>
/// <typeparam name="T"></typeparam>
public class OrderStandardResponseWrapper<T> : OrderStandardResponseWrapper
{
    public OrderStandardResponseWrapper(string message, string code, string orderNo) : base(message, code, orderNo)
    {
    }

    public OrderStandardResponseWrapper()
    {

    }

    /// <summary>
    ///  返回结果体
    /// </summary>
    public T Datas { get; set; }

}


